package com.vegetable.modules.entity.inbound.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.modules.entity.baseData.po.BaseQueryPO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 代办交货退货分页查询参数
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AgentDeliveryReturnPO", description = "代办交货退货分页查询参数")
public class AgentDeliveryReturnPO extends BaseQueryPO {

    @ApiModelProperty(value = "订单单号")
    private String deliveryDocNo;

    @ApiModelProperty(value = "代办人id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long agentId;

    @ApiModelProperty(value = "退货开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date returnTimeStart;

    @ApiModelProperty(value = "退货结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date returnTimeEnd;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "退货重量")
    private BigDecimal returnWeight;

    @ApiModelProperty(value = "退货数量")
    private Integer returnNumber;

    @ApiModelProperty(value = "商品标重")
    private BigDecimal standard;
}